package com.supermarket.api.service;

import com.supermarket.api.bean.collection.CollectionRes;
import com.supermarket.api.bean.collection.CollectionReq;
import com.supermarket.api.common.PageParam;
import com.supermarket.api.entity.CollectionEntity;
import org.springframework.data.domain.Page;

/**
 * 用户收藏服务层
 * @author 李其伟
 * @date 2023/11/10
 */
public interface CollectionService {

    void createAndDelete(CollectionReq req);

    void clear();

    CollectionEntity detail(String sku);

    Page<CollectionRes> list(PageParam pageParam);

}
